package com.module.framework.domain;


import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("lib_comment")
public class Comment {

    private Integer id;
    private Long userId;
    private Integer bookId;

    private String comment;

    @TableField(exist = false)
    private String name;
    @TableField(exist = false)
    private String author;
    @TableField(exist = false)
    private String categoryName;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
    private Integer delFlag;

}
